package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdRlDoctorPatient;
import java.util.Date;

/**
 * <p>
 * 医生-患者
 * </p>
 *
 * @author QR
 * @since 2021-12-17
 */
@Getter
@Setter
@ApiModel(value = "医生-患者列表信息", description = "医生-患者")
public class DoctorPatientListInfo {

    private Integer dataId;

    @ApiModelProperty("患者Id")
    private Integer patientId;

    @ApiModelProperty("医生Id")
    private Integer doctorId;

    @ApiModelProperty("医生关联患者所属分组Id")
    private Integer groupId;

    @ApiModelProperty("机构编码")
    private String orgCode;

    @ApiModelProperty("关联门店Id")
    private Integer storeId;

    @ApiModelProperty("关联门店会员卡Id")
    private Integer storeCardId;

    @ApiModelProperty("状态")
    private Integer doctorPatientsStatus;

    @ApiModelProperty("用户推荐状态")
    private Integer doctorPatientsRecommendStatus;

    @ApiModelProperty("关系类型")
    private Integer doctorPatientsRelationType;

    @ApiModelProperty("医患关系解除时间")
    private Date doctorPatientsInvalidTime;

    @ApiModelProperty("医生类型：1-科室主任,2-医生,3-健康管理师/护士")
    private Integer doctorType;




    public DoctorPatientListInfo (DtrdRlDoctorPatient po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        doctorId = po.getDoctorId();
        groupId = po.getGroupId();
        orgCode = po.getOrgCode();
        storeId = po.getStoreId();
        storeCardId = po.getStoreCardId();
        doctorPatientsStatus = po.getDoctorPatientsStatus();
        doctorPatientsRecommendStatus = po.getDoctorPatientsRecommendStatus();
        doctorPatientsRelationType = po.getDoctorPatientsRelationType();
        doctorPatientsInvalidTime = po.getDoctorPatientsInvalidTime();
        doctorType = po.getDoctorType();
    }
}
